package com.yao.shop.mapper;

import com.yao.shop.pojo.ShopUserAddress;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ShopUserAddressMapper {
    ShopUserAddress get(Long id);

    List<ShopUserAddress> getByUserId(Long userId);

    void delete(Long id);

    void updateNotDefaultByUserId(Long id);

    void update(ShopUserAddress shopUserAddress);

    void save(ShopUserAddress shopUserAddress);
}
